package cn.pzaily.fealetter.listener;

import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;
import org.springframework.stereotype.Component;

/**
 * @PackageName: cn.pzaily.fealetter.listener
 * @Description:
 * @Author: Pang
 * @Date: 2021-11-20 14:47
 */

@Component
public class MyRedisSubscriberListener implements MessageListener {
    /**
     * 监听方法
     * @param message
     * @param bytes
     */
    @Override
    public void onMessage(Message message, byte[] bytes) {
        System.out.println("收到消息" + message);
    }
}
